Selecting item from listview in C#

42

Selecting item from listview in C# -

private void listView1_SelectedIndexChanged(object sender, EventArgs e)
 {
   if(listView1.SelectedItems.Count > 0)
     textBox1.Text = people[listView1.SelectedItems[0].Index].Name;
 }

Comments

Submit
0 Comments